.class public Lcom/fiberhome/gaea/client/d/f;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/fiberhome/gaea/client/d/f;


# instance fields
.field private b:Lcom/squareup/picasso/Picasso;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-static {p1}, Lcom/squareup/picasso/Picasso;->with(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v0

    iput-object v0, p0, Lcom/fiberhome/gaea/client/d/f;->b:Lcom/squareup/picasso/Picasso;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;
    .locals 1

    sget-object v0, Lcom/fiberhome/gaea/client/d/f;->a:Lcom/fiberhome/gaea/client/d/f;

    if-nez v0, :cond_0

    new-instance v0, Lcom/fiberhome/gaea/client/d/f;

    invoke-direct {v0, p0}, Lcom/fiberhome/gaea/client/d/f;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/fiberhome/gaea/client/d/f;->a:Lcom/fiberhome/gaea/client/d/f;

    :cond_0
    sget-object v0, Lcom/fiberhome/gaea/client/d/f;->a:Lcom/fiberhome/gaea/client/d/f;

    return-object v0
.end method


# virtual methods
.method public a(I)Lcom/squareup/picasso/RequestCreator;
    .locals 2

    iget-object v0, p0, Lcom/fiberhome/gaea/client/d/f;->b:Lcom/squareup/picasso/Picasso;

    invoke-virtual {v0, p1}, Lcom/squareup/picasso/Picasso;->load(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    const v1, 0x7f020252

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    const v1, 0x7f020250

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    return-object v0
.end method

.method public a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
    .locals 3

    const v2, 0x7f020263

    iget-object v0, p0, Lcom/fiberhome/gaea/client/d/f;->b:Lcom/squareup/picasso/Picasso;

    invoke-static {p1}, Lcom/fiberhome/gaea/client/d/k;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    return-object v0
.end method

.method public b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
    .locals 7

    const v6, 0x7f020252

    const v5, 0x7f020250

    invoke-static {p1}, Lcom/fiberhome/gaea/client/d/k;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "file://"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/fiberhome/gaea/client/d/f;->b:Lcom/squareup/picasso/Picasso;

    new-instance v2, Ljava/io/File;

    const-string/jumbo v3, "file://"

    const-string/jumbo v4, ""

    invoke-virtual {v0, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/squareup/picasso/Picasso;->load(Ljava/io/File;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    iget-object v1, p0, Lcom/fiberhome/gaea/client/d/f;->b:Lcom/squareup/picasso/Picasso;

    invoke-virtual {v1, v0}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;

    move-result-object v0

    goto :goto_0
.end method
